<div class="form">
    <?php
    /** @var EventoController $this */
    /** @var Evento $model */
    /** @var AweActiveForm $form */
    $form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
        'id' => 'evento-form',
        'enableAjaxValidation' => true,
        'enableClientValidation' => false,
    ));
    ?>
        <?php echo $form->errorSummary($model) ?>
    <div>
    <p class="note">
        <?php echo Yii::t('AweCrud.app', 'Fields with') ?> <span class="required">*</span>
        <?php echo Yii::t('AweCrud.app', 'are required') ?>.    </p>
    </div>

    <div class="span12">
        <div class="span6">
            <?php echo $form->textFieldRow($model, 'nombre', array('maxlength' => 100)) ?>
        </div>
        <div class="span6">
            <?php echo $form->dropDownListRow($model, 'tipo_evento', array('' => ' -- Seleccione -- ') + CHtml::listData(TipoEvento::model()->findAll(), 'id', TipoEvento::representingColumn())) ?>
        </div>

    </div>
    <div class="span12">
        <div class="span6">
            <?php // echo $form->dropDownListRow($model, 'carrera_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Carrera::model()->findAll(), 'id', Carrera::representingColumn())) ?>
                         <?php echo $form->textFieldRow($model, 'horas') ?>

        </div>
        <div class="span6">
            <?php echo $form->textFieldRow($model, 'horas_minimo') ?>
        </div>

    </div>
    <div class="span12">
        <div class="span6">
            <?php
            echo $form->datepickerRow($model, 'fecha_inicio', array('prepend' => '<i class="icon-calendar"></i>',
                'options' => array('format' => 'yyyy/mm/dd')
            ))
            ?>
        </div>
        <div class="span6">
            <?php
            echo $form->datepickerRow($model, 'fecha_fin', array('prepend' => '<i class="icon-calendar"></i>',
                'options' => array('format' => 'yyyy/mm/dd')
            ))
            ?>
        </div>

    </div>
    <div class="span12">
        <div class="span6">
            <?php echo $form->dropDownListRow($model, 'estado', array('ACTIVO' => 'ACTIVO', 'INACTIVO' => 'INACTIVO',)) ?>
        </div>
        <div class="span6">
<?php echo $form->textFieldRow($model, 'lugar', array('maxlength' => 100)) ?>
        </div>

    </div>
    
    <div class="span12">
        <div class="span6">
 <?php echo $form->textFieldRow($model, 'observaciones', array('maxlength' => 300)) ?>
        </div>
        <div class="span6">
  <?php // echo $form->checkBoxRow($model, 'control') ?>
            <div class="control-group">
                <div class="controls">
   <?php echo $form->labelEx($model,'firmas'); ?>
            <?php
   $this->widget(
           'bootstrap.widgets.TbSelect2', array(
       'model' => $model,
       'attribute' => 'firmas',
       'data' => (CHtml::listData(Firma::model()->findAll(), 'id', 'nombre')) + array(null),
       'options' => array(
           'maximumSelectionSize' => '3',
       ),
       'htmlOptions' => array(
           'multiple' => 'multiple',
           'style' => 'width:250px',
       ),
           )
   );
   ?>
            <span class="help-block error" id="Evento_firmas_em_"></span>
                </div>

            </div>
       
            
        </div>

        </div>


  

    
   
    <div class="span12">
    <div class="form-actions">
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
        ));
        ?>
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            //'buttonType'=>'submit',
            'label' => Yii::t('AweCrud.app', 'Cancel'),
            'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')
        ));
        ?>
    </div>
    </div>

    <?php $this->endWidget(); ?>
</div>